home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 3
/
Amiga Tools 3.iso
/
grafik
/
raytracing
/
rayshade-4.0.6.3
/
examples
/
gradient.ray
< prev
next >
Wrap
Text File
|
1994-08-09
|
3KB
|
203 lines
/*
*
* gradient.ray
*
* By Larry Coffin June 1992
*
* lcoffin@clciris.chem.umr.edu
*
* This is an example file for the gradient texture. It includes
* surface definitions by me as well as ones posted to the newsgroups.
*
*
* Other Surfaces by:
*
*
* Iain Sinclair 1991
* Everett (Skip) Carter
* keihh!kt@abqhh.hanse.de (??)
*
*/
eyep 0 -25 5
lookp -.3 0 -.75
up 0 0 1
fov 45
screen 640 512
background .1 .1 .1
sample 3
maxdepth 4
/* surfaces */
surface blue ambient .05 .05 .2 diffuse .1 .1 .8 specular .05 .05 .05
specpow 4 reflect 0.35
surface black
ambient 0 0 0
surface blue_glass
ambient 0.00 0.00 0.02
diffuse 0 0 0
specular .8 .8 .8
specpow 100
reflect .2
transp .8
index 1
body 0 0 1
surface darkgreen
ambient 0 .1 0
diffuse 0 .2 0
surface glass5 ambient 0.02 0.02 0.02
diffuse 0.0 0.0 0.0
specular 0.8 0.8 0.8 specpow 40 reflect 0.2 transp 0.8 index 1.15
surface glass6
transp 1
index 1.15
specular 1 1 1
specpow 150
body .18 .30 0
surface gray
ambient .2 .2 .2
diffuse .3 .3 .3
surface green
ambient .07 .1 .06
diffuse .3 .6 .27
specular .2 .5 .15
specpow 2
surface orange diffuse .99 .5 .0 reflect .15
surface pink diffuse 0.7265 0.3618 0.5294 ambient 0.2422 0.1206 0.1765
surface red
ambient .1 0 0
diffuse .97 0 0
surface snow
ambient .6 .6 .6
diffuse .9 .9 .9
specular 1 1 1
specpow 60
surface zucchini diffuse .1 .3 .1 specular .0 .1 .0 reflect .15
/* objects */
name orig_ball
sphere red 3 0 0 0
texture gradient red blue
scale 1 1 3
texture gradient red blue
scale 1 1 3
rotate 0 1 0 180
name or_pin_ball
sphere 1.5 0 0 0
texture gradient orange pink
scale 1 1 3
rotate -1 1 0 135
translate -.88 -.88 .88
name grad_glass
sphere 3 0 0 0
texture gradient glass5 blue_glass
translate 0 0 -.5
scale 1 1 6
name zucc_ball
sphere zucchini 2.5 0 0 0
texture gradient glass5 glass6
scale 1 1 3
rotate -1 1 0 90
translate -1 -.5 0
name balls list
object grad_glass
translate 3 -5 -2
object orig_ball
translate 0 0 2
object or_pin_ball
translate -4.5 -2 -3
object zucc_ball
translate -7 2 3
end
name cyln
cylinder ambient .5 .5 .5 diffuse 1 1 1
.1 -2 0 0 9 0 0
object balls
object cyln
translate 0 0 0
object cyln
translate 0 0 -1
object cyln
translate 0 0 -2
object cyln
translate 0 0 -3
object cyln
translate 0 0 -4
object cyln
translate 0 0 -5
object cyln
translate 0 0 -6
object cyln
translate 0 0 -7
name grad_cone cone 1 -3 0 0 0 3 0 0
texture gradient green blue
scale 1 1 6
rotate 0 1 0 90
translate -3 0 0
object grad_cone
translate -5 -5 -5
name landscape
fracland gray 1 7
texture gradient darkgreen green
scale 1 1 .7
translate 0 0 -.65
texture gradient green gray
scale 1 1 .075
translate 0 0 .05
texture gradient gray snow
scale 1 1 .1
translate 0 0 .15
texture gradient snow snow
translate 0 0 .25
object landscape
scale 6 6 6
translate 4 0 3
list
cylinder .5 0 0 0 0 0 3
texture gradient red green 0 3
end
translate -9.5 0 -3
list
cylinder .5 0 0 0 0 0 3
texture gradient red green 0 3 log
end
translate -8.5 0 -3
list
cylinder .5 0 0 0 0 0 3
texture gradient red green 0 3 revlog
end
translate -7.5 0 -3